package cn.stard.controller;

import cn.stard.domian.User;
import cn.stard.feign.UserFeignCilent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PayController {

    @Autowired
    private UserFeignCilent userFeignCilent;

    @RequestMapping("/getUserById/{id}")
    public User getById(@PathVariable Long id){

        return userFeignCilent.getUserById(id);
    }
}
